package com.qiwx.pigeon.widget.itemderection;

import android.graphics.Rect;
import android.view.View;

import androidx.recyclerview.widget.RecyclerView;

/**
 * @description
 * @Author qiwx
 * @Date 2020-03-22 11:13
 **/
public class LineItemDecoration extends RecyclerView.ItemDecoration {
    private int space;
    public LineItemDecoration(int space){
        this.space=space;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {

        outRect.left=0;
        outRect.right=0;
        outRect.top=0;
        outRect.bottom=space;

    }
}
